import { Component, OnInit, Injector } from '@angular/core';
import { AppComponentBase } from '@shared/common/app-component-base';

@Component({
  selector: 'app-index',
  templateUrl: './index.component.html',
  styleUrls: ['./index.component.css']
})
export class IndexComponent extends AppComponentBase implements OnInit {
  userLogin: string;
  userLogind: boolean;

  constructor(
    injector: Injector) {
    super(injector);
  }

  ngOnInit() {
    try {
      this.userLogin = this.appSession.getShownLoginName();
      this.userLogind = this.userLogin.length === 0 ? false : true;
    } catch {
      this.userLogind = false;
      this.userLogin = '';
    }
  }


}
